﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SprintTrelloAutomater
{
    class MasterViewModel
    {
        public TrelloHelper TrelloInterface { get; set; }
        public DelegateCommand ShowAuthFormCmd { get; set; }

        public MasterViewModel()
        {
            ShowAuthFormCmd = new DelegateCommand(ShowAuthForm);
            TrelloInterface = new TrelloHelper();
        }

        private void ShowAuthForm(object o)
        {
            new AuthForm(TrelloInterface.AuthorizationURL).ShowDialog();
        }
    }
}
